package com.hxzy.shop.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 砍价推荐商品
 * @TableName full_haggle_suggest_drug
 */
@TableName(value ="full_haggle_suggest_drug")
@Data
@ApiModel("砍价推荐商品")
@Accessors(chain = true)
public class FullHaggleSuggestDrug implements Serializable {
    /**
     * 砍价推荐商品ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 活动id
     */
    @ApiModelProperty(value = "活动id")
    @TableField(value = "haggle_id")
    private Long haggleId;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    @TableField(value = "drug_id")
    private Long drugId;

    /**
     * 商户id
     */
    @ApiModelProperty(value = "..",hidden = true)
    @TableField(value = "merchant_id")
    private Long merchantId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "")
    @TableField(value = "drug_name")
    private String drugName;

    /**
     * 商品图片
     */
    @ApiModelProperty(value = "")
    @TableField(value = "tabular_chart")
    private String tabularChart;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}